package com.cjj.eatlasflow.mapper;

import com.cjj.eatlasflow.model.SeckillStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 54226
* @description 针对表【t_seckill_stock(秒杀库存表)】的数据库操作Mapper
* @createDate 2025-02-19 12:31:04
* @Entity com.cjj.eatlasflow.model.SeckillStock
*/
public interface SeckillStockMapper extends BaseMapper<SeckillStock> {

    /**
     * 保存SecKillStock
     *
     * @param secKillStock
     */
    void save(@Param("stock") SeckillStock secKillStock);

    /**
     * 更新SecKillStock
     *
     * @param secKillStock
     */
    void update(@Param("stock") SeckillStock secKillStock);

    /**
     * 根据SecKillStockId查询SecKillStock
     *
     * @param stockId
     * @return SecKillStock
     */
    SeckillStock getSecKillStockById(@Param("stockId") Long stockId);

    /**
     * DescStock
     *
     * @param goodsID
     * @param num
     * @return void
     */
    Integer descStock(@Param("goodsID") Long goodsID, @Param("num") Integer num);
}




